def ReadText(lines_x):
	'''读取文本信息'''
	try:
		with open(lines_x) as file_obj:
			massaes = file_obj.read()
			print(massaes)
	
	except FileNotFoundError:
		pass

	
lines = ['cats.txt','dogs.txt','d.txt']
print(lines)
for line in lines:
	ReadText(line)
		

